package com.yic.module.wms.controller.admin.erpproducein.vo;

import lombok.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.yic.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import static com.yic.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - erp生产入库分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ErpProduceInPageReqVO extends PageParam {

    @Schema(description = "工厂")
    private String factoryId;

    @Schema(description = "生产车间")
    private String workshopId;

    @Schema(description = "单号")
    private String code;

    @Schema(description = "单据编号")
    private String erpDocNo;

    @Schema(description = "单据类型")
    private String erpDocCode;

    @Schema(description = "单据日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] erpDocDate;

    @Schema(description = "工作中心")
    private String erpCenterCode;

    @Schema(description = "生产计划", example = "23811")
    private Long planId;

    @Schema(description = "产品信息", example = "23811")
    private Long itemId;

    @Schema(description = "批次号")
    private String batchNo;

    @Schema(description = "状态", example = "2")
    private Integer status;

}
